<?php

set_time_limit(0);

include("Shared/Opcodes.php");

$sock = socket_create(AF_INET, SOCK_STREAM, 0);

socket_bind($sock, "192.168.1.101", 3724);

socket_listen($sock);

while(true)
{
	$client = socket_accept($sock);
	
	if($client)
	{
		while($in = socket_read($client, 2048))
		{
			echo $in;
			socket_write($client, "\x0D", 1);
		}
		
		socket_close($client);
		break;
	}
}

socket_close($sock);

?>